function ClearAllTextbox() {
            document.getElementById('txtName-inputEl').value = '';
            document.getElementById('txtNote-inputEl').value = '';
};

function ClearAll_TeamForm() {
    document.getElementById('txtExpectedEndDate-inputEl').value = '';
    document.getElementById('cbbTeamList-inputEl').value = '';
    document.getElementById('txtStartDate-inputEl').value = '';
    document.getElementById('txtComment-inputEl').value = '';
}
        
        var temp = '<span style="color:{0};">{1}</span>';

        function GetNate(value) {
            switch (value) {
                case "D":
                    return 'Hoàn thành';
                case "L":
                    return "Hoàn thành - Chậm";
                case "I":
                    return "Đang thực hiện";
                default:
                    return "ERROR";
            }
        };

        var status1 = function(value) {
            return Ext.String.format(temp, (value == "L") ? "red" : "green", GetNate(value.toString()));
            //alert(value);
        };